#region Summary 

// 
// Owner : JackieHan 
// 
// Solution : LearnSolution 
// 
// Project : JackieHan.DotNet.ExtensionMethods 
// 
// File : TestClass.cs 
// 
// CopyRight : Copyright © 2009-2010 JackieHan Personal, All Rights Reserved 
// 
// Summary : 测试类 
// 
// History : 
//			2010-05-19 15:51:53	    Create 
// 

#endregion

#region Using 

using System;
using System.Collections.Generic;
using NUnit.Framework;

#endregion

namespace JackieHan.DotNet.ExtensionMethods.NestedExtensionMethod
{
    /// <summary> 
    /// 测试类 
    /// </summary> 
    [TestFixture]
    public class TestClass
    {
        [Test]
        public void TestNestedExtensionMethod()
        {
            int mm = 7;
            int a = mm.ExtensionOne().ExtensionTwo();
            int b = mm.ExtensionTwo().ExtensionOne();
            int c = MyExtensionMethods.ExtensionTwo(MyExtensionMethods.ExtensionOne(mm));
            Assert.AreEqual(a, 25);
            Assert.AreEqual(b, 33);
            Assert.AreEqual(c, 25);
        }
    }
}
